package cn.kinoko.service.ai.ocr.impl;

import cn.kinoko.common.aspect.annotation.Cacheable;
import cn.kinoko.common.base.model.BaseServiceImpl;
import cn.kinoko.common.constant.CacheKeyConstant;
import cn.kinoko.mapper.ai.ocr.OcrLrMapper;
import cn.kinoko.model.ai.ocr.entity.OcrLr;
import cn.kinoko.service.ai.ocr.OcrLrService;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * @author liujunkai
 * @date 2024/8/14 15:56
 */
@Service
public class OcrLrServiceImpl extends BaseServiceImpl<OcrLrMapper, OcrLr> implements OcrLrService {

    @Cacheable(key = CacheKeyConstant.OCR_LR, params = "#id")
    @Override
    public OcrLr getById(Serializable id) {
        return super.getById(id);
    }
}